package com.inifitness.common.constants;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

/**
 * Security相关常量
 *
 * @author sunjinfeng
 * @version 1.0.0
 * @since 2024/04/18 11:00:00
 */
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class SecurityConstants {

  /**
   * 登录接口路径
   */
  public static final String LOGIN_PATH = "/api/v1/auth/login";

  /**
   * 验证码缓存前缀
   */
  public static final String CAPTCHA_CODE_PREFIX = "captcha_code:";

  /**
   * 角色和权限缓存前缀
   */
  public static final String ROLE_PERMS_PREFIX = "role_perms:";

  /**
   * 黑名单Token缓存前缀
   */
  public static final String BLACKLIST_TOKEN_PREFIX = "token:blacklist:";

}
